﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.WmsManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.WmsManagement.WarehouseVMs
{
    public partial class WarehouseTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Warehouse._WarehouseCode")]
        public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.WarehouseCode);
        [Display(Name = "_Model._Warehouse._Name")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.Name);
        [Display(Name = "_Model._Warehouse._Address")]
        public ExcelPropety Address_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.Address);
        [Display(Name = "_Model._Warehouse._Manager")]
        public ExcelPropety Manager_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.ManagerId);
        [Display(Name = "_Model._Warehouse._Capacity")]
        public ExcelPropety Capacity_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.Capacity);
        [Display(Name = "_Model._Warehouse._IsActive")]
        public ExcelPropety IsActive_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.IsActive);
        [Display(Name = "_Model._Warehouse._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.CreateTime, true);
        [Display(Name = "_Model._Warehouse._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.UpdateTime, true);
        [Display(Name = "_Model._Warehouse._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.CreateBy);
        [Display(Name = "_Model._Warehouse._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.UpdateBy);
        [Display(Name = "_Model._Warehouse._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.IsValid);
        [Display(Name = "_Model._Warehouse._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class WarehouseImportVM : BaseImportVM<WarehouseTemplateVM, Warehouse>
    {
            //import

    }

}